import { createApp } from "vue";
import router from "./router/index.js";
import store from "./store/index.js";
import App from "./view/app.vue";
// import "./utils/orientation.js"
// import './utils/flexible'
import directive from './directive'

import "./utils/font.js"

import { register } from "swiper/element-bundle";
register();

// import VConsole from "vconsole";
// const vConsole = new VConsole();


// const { name,version } = navigator.userAgent.match(/(?<name>[A-Za-z]+)\/(?<version>[0-9.]+)$/).groups;
// if(name === "Firefox"){
// 	if(version < 115){
// 		location.pathname = "download.html";
// 	}
// }else{
// 	if(version < 109){
// 		location.pathname = "download.html";
// 	}
// }
const app = createApp(App);
app.use(router);
app.use(store);

directive(app);

app.mount("#app");
